<table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
        <td style="width:75%;vertical-align:top;font-size:9pt;" class="color">

<br />
{messages}
{$sJsMess}
<form name="frm" action="{url link='public.event.add'}" method="post" onsubmit="{$sJsVal}">
<table style="width:100%;" cellpadding="4" cellspacing="0">
<tr>
    <td style="vertical-align:top; font-size:9pt;" class="border2">
        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
            <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{language text="menu.event.submit.add-event"}</td>
            </tr>
        </table>
        <table style="width:100%;" cellspacing="2" cellpadding="4">
        <tr>
        	<td colspan="2">
        	
        	</td>
        </tr>
        <tr>
            <td style="text-align:right;" class="color"><span class="star">*</span> {language text="events_name"}:</td>
            <td class="border13">
                <input type="text" name="val[title]" size="25" value="{$aValue.title|escape}" maxlength="30" onfocus="this.className='inputmain';" onblur="this.className='';" />
            </td>
        </tr>
        <tr>
            <td style="text-align:right;" class="color"><span class="star">*</span> {language text="contact_email"}:</td>
            <td class="border13">
            <input type="text" name="val[email]" size="25" value="{$aValue.email|escape}" onfocus="this.className='inputmain';" onblur="this.className='';" />
            </td>
        </tr>
        <tr>
            <td style="text-align:right; vertical-align:top;" class="color">{language text="event_type"}:</td>
            <td class="border13">
                <div style="padding:5px;">
                <div><input type="radio" name="val[private]" value="1"{if $aValue.private == 1} checked="checked"{/if} /> {language text="public"}</div>
                <div><input type="radio" name="val[private]" value="2"{if $aValue.private != 1} checked="checked"{/if} /> {language text="private"}</div>
                </div>
            </td>
        </tr>
        <tr>
            <td style="text-align:right;" class="color"><span class="star">*</span> {language text="category_145"}:</td>
            <td class="border13">
                <select name="val[type]" style="width:160px;">
                	<option value="">{language text='option.select'}</option>
                    {html_options options=$aCategories selected=$aValue.type}
                </select>
            </td>
        </tr>
        <tr>
            <td style="text-align:right;" class="color"><span class="star">*</span>{language text="_nbsp_short_nbsp_descript"}:</td>
            <td class="border13">
                <input type="text" name="val[short]" size="25" maxlength="60" value="{$aValue.short|escape}" onfocus="this.className='inputmain';" onblur="this.className='';" />
            </td>
        </tr>
        <tr>
            <td style="text-align:right;" class="color">{language text="start_date"}:</td>
            <td class="border13">
            	{language text='Mod_Account.month'}
                <select name="val[month]" style="width:60px;">
                    {html_options options=$aMonths selected=$aValue.month}
                </select>
				/ {language text='Mod_Account.day'}
                <select name="val[day]" style="width:60px;">
                    {html_options options=$aDays selected=$aValue.day}
                </select>
				/ {language text='Mod_Account.year'}
                <select name="val[year]" style="width:60px;">
                    {html_options options=$aYears selected=$aValue.year}
                </select>
            </td>
        </tr>
        <tr>
            <td style="text-align:right;" class="color">{language text="start_time"}:</td>
            <td class="border13">
                <select name="val[start_time_hour]" style="width:60px;">
                    {html_options options=$aHours selected=$aValue.start_time_hour}
                </select>

                <select name="val[start_time_minute]" style="width:60px;">
                    {html_options options=$aMinutes selected=$aValue.start_time_minute}
                </select>

                <select name="val[start_time_ap]" style="width:60px;">
                    <option value="pm"{if $aValue.start_time_ap == 'pm'} selected="selected"{/if}>{language text="pm"}</option>
                    <option value="am"{if $aValue.start_time_ap == 'am'} selected="selected"{/if}>{language text="am"}</option>
                </select>

            </td>
        </tr>
        <tr>
            <td style="text-align:right;" class="color">{language text="place_venue"}:</td>
            <td class="border13">
                <input type="text" name="val[place]" size="25" maxlength="30" value="{$aValue.place|escape}" onfocus="this.className='inputmain';" onblur="this.className='';" />
            </td>
        </tr>
        <tr>
            <td style="text-align:right;" class="color">{language text="address"}:</td>
            <td class="border13">
                <input type="text" name="val[address]" size="25" maxlength="30" value="{$aValue.address|escape}" onfocus="this.className='inputmain';" onblur="this.className='';" />
            </td>
        </tr>
        <tr>
            <td style="text-align:right;" class="color"><span class="star">*</span> {language text="city"}:</td>
            <td class="border13">
                <input type="text" name="val[city]" size="25" maxlength="30" value="{$aValue.city|escape}" onfocus="this.className='inputmain';" onblur="this.className='';" />
            </td>
        </tr>
        <tr>
            <td style="text-align:right;" class="color"><span class="star">*</span> {language text="country"}:</td>
            <td class="border13">
                <select name="val[country]"{if getParam('us_states')} onchange="checkUsMode(true);" id="fldCountrySel"{/if}>
                	<option value="">{language text='select'}</option>
                	{html_options options=$aCountries selected=$aValue.country}
                </select>
            </td>
        </tr>
        {if $bZipState}
        <tr>
            <td style="text-align:right;" class="color"><span class="star">**</span> {language text="state"}:</td>
            <td class="border13">
                <select name="val[state]" id="fldStateSel">
                	<option value="">{language text='select'}</option>
                    {html_options options=$aStates selected=$aValue.state}
                </select>
            </td>
        </tr>
        <tr>
            <td style="text-align:right;" class="color"><span class="star">**</span>{language text="_nbsp_postal_nbsp_code"}:</td>
            <td class="border13">
                <input type="text" name="val[zip]" id="fldZip" size="8" maxlength="5" value="{$aValue.zip|escape}" onfocus="this.className='inputmain';" onblur="this.className='';" />
            </td>
        </tr>
        {/if}        
        <tr>
            <td style="text-align:right; vertical-align:top;" class="color"><span class="star">**</span>{language text="event_description"}:</td>
            <td class="border13">
                <textarea cols="45" rows="8" style="width:95%;" name="val[text]">{$aValue.text|escape}</textarea>
                <br />
                <br />
        		&nbsp;&nbsp;&nbsp;<span class="star">*</span> - {language text="mandatory_fields"}
        		{if $bZipState}
        			<br />
         			<span class="star">**</span> - {language text="mandatory_if_selected_country_is_un"}
        		{/if}                    
            </td>
        </tr>        
        </table>
    </td>
</tr>
<tr>
    <td style="padding:10px; text-align: center;" colspan="3">  
        <div>
            <input type="submit" name="act[add]" value="{language text="submit"}" style="width:160px;cursor:pointer;" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />
        </div>
    </td>
</tr>
</table>
</form>
	<td style="width:30%;vertical-align:top;font-size:8pt;text-align:center;" class="color">
        {include file="`$sRootPath`/public/_banner-right.html"}
        <br/><br/>
    </td>
    </tr>
</table>
{if getParam('us_states')}<script type="text/javascript">checkUsMode(true);</script>{/if}